#!/bin/bash

gphoto2 --force-overwrite --filename "output0.%C" --capture-image-and-download

for i in `seq 1 90`;
        do
		gphoto2 --force-overwrite --capture-preview --set-config manualfocusdrive=0
		gphoto2 --quiet --force-overwrite --filename "output$i.%C" --set-config eosremoterelease=Immediate --set-config eosremoterelease=Off --wait-event-and-download=2s
		echo Captured image $i
		done
